package com.yonyou.ftp;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class FtpTest
{
  public static void main(String[] args)
  {
    File chooseExcelFile = new File("D:\\ConsignmentXmlRs.Xml");
    try
    {
      FileInputStream in = new FileInputStream(chooseExcelFile);

      FtpUtil.uploadFile("10.53.18.95", 21, "yangyhf", "yangyhf", 
        "/", chooseExcelFile.getName(), in);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    }
  }
}